<template>
  <div>
    <el-form-item :label="snTitle" prop="serialNumber">
      <el-input v-model="form.serialNumber" :disabled="isEdit" auto-complete="off"/>
    </el-form-item>
    <el-form-item v-if="!isEdit" label="校验码" prop="regCode">
      <el-input v-model="form.regCode" auto-complete="off"/>
    </el-form-item>
    <el-form-item label="安装位置">
      <el-input v-model="form.address" auto-complete="off"/>
    </el-form-item>
    <el-form-item label="备注" prop="description">
      <el-input v-model="form.description" type="textarea" auto-complete="off"/>
    </el-form-item>
  </div>
</template>

<script>
export default {
  name: 'BackToTop',
  props: {
    form: {
      type: Object,
      default: function() {
        return {
          serialNumber: '',
          regCode: '',
          address: '',
          description: ''
        }
      }
    },
    snTitle: {
      type: String,
      default: '设备编号'
    },
    isEdit: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
    }
  },
  created() {
  },
  methods: {}
}
</script>
